import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_app/BaseMaterialWidget.dart';

class PageLayoutDemo3 extends BaseMaterialWidget {
  @override
  Widget buildContent(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.center,
      mainAxisAlignment: MainAxisAlignment.spaceAround,
      children: <Widget>[
        Row(
          children: <Widget>[
            Icon(Icons.chat),
            Expanded(
                child: Text(
              'Expanded容器包裹',
              style: TextStyle(backgroundColor: Colors.green),
              textAlign: TextAlign.center,
            )),
            Text('聊一下'),
          ],
        ),
        Text('垂直布局'),
        Text('Flutter'),
        Expanded(
          child: Text('内容'),
        )
      ],
    );
  }

  @override
  String getTitle() {
    return 'Row、Column';
  }
}
